<script setup>
import { ref } from 'vue'

const count = ref(100)
function increment() {
  count.value++
}
</script>

<template>
  <div class="counter">
    <div class="show">当前计数：{{ count }}</div>
    <button class="btn" @click="increment">+ 1</button>
  </div>
</template>

<style lang="less" scoped>
.counter {
  display: flex;
  border: 1px solid red;
  padding: 20px;

  .btn {
    background: skyblue;
    padding: 0 30px;
    margin-left: 30px;
  }
}
</style>
